import request from "@/utils/request.ts";
import {ICommonResponse, ISqlUpdate} from "@/global.ts";

export interface IExpert {
    expertUID: string
    userUID: string
    expertName: string
    expertID: string
    expertWx: string
    expertSendSample: string
    expertAddress: string
    expertCode: string
}


export const expertList = (): Promise<ICommonResponse<Array<IExpert>>> => {
    return request({
        url: '/expert/list',
        method: 'POST'
    })
}

export const expertAdd = (data: IExpert): Promise<ICommonResponse<ISqlUpdate>> => {
    return request({
        url: '/expert/add',
        method: 'POST',
        data
    })
}